package sgi.message;

import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.Date;

import javax.sql.rowset.*;

import com.sun.rowset.CachedRowSetImpl;


@SuppressWarnings("serial")
public class MessageRetrieveReport extends Message {
	
	private CachedRowSetImpl reportInfo;
	private int reportType;
	
	private int type5SubNum;
	private String type5Query;
	

	public MessageRetrieveReport(Date date, String query, int reportType) throws SQLException {
		super(query);
		reportInfo = new CachedRowSetImpl();
		this.reportType = reportType;
		// TODO Auto-generated constructor stub
	}
	
	
	public void setRS(ResultSet reportInfo) throws SQLException {
		this.reportInfo.populate(reportInfo);
	}
	
	public CachedRowSetImpl getRS() {
		return this.reportInfo;
	}
	
	public int getReportType() {
		return this.reportType;
	}
	
	public int getType5SubNum() {
		return this.type5SubNum;
	}
	
	public void setType5SubNum(int type5SubNum) {
		this.type5SubNum = type5SubNum;
	}


	public String getType5Query() {
		return type5Query;
	}


	public void setType5Query(String type5Query) {
		this.type5Query = type5Query;
	}
	
}
